package com.taru.university.mapper;

import com.taru.university.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component("userMapper")
public interface UserMapper {
    User queryUserById(String userId);

    User login(
            @Param("userName")String userName, @Param("userPassword")String userPassword,
            @Param("userSort")String userSort);

    void updateUserById(User user);

    void insertUser(User user);

    void updateUserByQuestion(User user);
}
